const OpenAI = require("openai")
const openai = new OpenAI({
	baseURL: 'https://api.deepseek.com',
	apiKey: 'sk-17d0f7fbe2ac4c7381a8309baa717a70'
});
class Ai {



	static async main(content) {
		return new Promise(async (resolve, reject) => {
			const completion = await openai.chat.completions.create({
				messages: [{
					role: "system",
					content: content
				}],
				model: "deepseek-chat",
			});
			resolve(completion.choices[0].message.content)
		})

	}

}
module.exports = Ai